package com.istock.union.model;

import java.util.List;

/**
 * 菜单项信息
 */
public class MenuItemVo {
    private String path;
    private Boolean hidden;
    private String component;
    private Integer index;
    private String redirect;

    private MetaData meta;
    private List<MenuItemVo> children;

    public MenuItemVo(){
        this.meta = new MetaData();
        this.redirect="noRedirect";
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Boolean getHidden() {
        return hidden;
    }

    public void setHidden(Boolean hidden) {
        this.hidden = hidden;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public MetaData getMeta() {
        return meta;
    }

    public void setMeta(MetaData meta) {
        this.meta = meta;
    }

    public List<MenuItemVo> getChildren() {
        return children;
    }

    public void setChildren(List<MenuItemVo> children) {
        this.children = children;
    }

    public static class MetaData {
        private String title;
        private String icon;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }
    }
}
